<?php 

/**
* InModel
*/
class InModel extends Model
{
  public function delInById(int $i_id)
  {
    $data['i_id'] = 1;
    M('Word')->where('i_id =' . $i_id)->save($data);
    M('Example')->where('i_id =' . $i_id)->save($data);
    if (M('In')->where('i_id =' . $i_id)->delete()) {
      return true;
    } else {
      return false;
    }
  }

  public function selectAll()
  {
    return M('In')->where('i_id <> 1')->select();
  }
}

 ?>